<?php

/**
 * Sumber : https://gist.github.com/sepehr/6351397
 * atau 
 * http://usefulphp.blogspot.com/2010/04/php-inarray-case-insensitive.html
 *
 * Case-insensitive in_array() wrapper.
 *
 * @param  mixed $needle   Value to seek.
 * @param  array $haystack Array to seek in.
 *
 * @return bool
 */
function in_array_ins($needle, $haystack){
	return in_array(strtolower($needle), array_map('strtolower', $haystack));
}